#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "rtc.h"
#include "api/video/i420_buffer.h"
#include "Qss.h"
#include "cplaywidget.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QssMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
public slots:
    void OnUpdateFrame( rtc::scoped_refptr<webrtc::I420BufferInterface>& buffer);
private slots:
    void on_pushButton_clicked();
    void RenderDone();
    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_5_clicked();

private:
    Ui::MainWindow *ui;
    std::unique_ptr<CameraVideoSink> m_capturer;
    QLabel *origin_picture;
    QLabel *processed_picture;
    CPlayWidget *mDetectResut;
};
#endif // MAINWINDOW_H
